package com.fly.trading.dao;

import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;

import com.fly.trading.entity.TradingUser;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface TradingUserRepository extends ReactiveMongoRepository<TradingUser, String>
{
    Mono<TradingUser> findByUserName(String userName);
    
    Flux<TradingUser> findBy(Pageable pageable);
    
}
